<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"  %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html lang="en">
<head>
	<base href="<%=basePath%>">
    <%@ include file="/main/main_css.jsp" %>
    <%@ include file="/main/main_js.jsp" %>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>办事列表</title>
    <style>
    .com-header{
    	text-align: center;
    }
    .todolist .list-sel-btn .image-wrapper img{
    object-fit:cover;
    width: 100%;
    }
    .todolist .list-sel-btn .image-wrapper{border: none !important;}
    </style>
</head>
<body>
    <!--  -->
    <div class="all-wrapper">
        <div class="row com-header">
            <span>鹰潭市行政服务中心</span>
        </div>
        <div class="row main-content todolist">
            <div class="row">
                <div class="col-md-5 hidden">
                <c:if test="${type.equals('1') }">
					<a href="/smartTerminal/getoritems?type=2">
                        <div class="todolist-panel personal">
                            <span>个人办事</span>
                        </div>
                    </a>
                    <a href="/smartTerminal/getoritems?type=1" class="active">
                        <div class="todolist-panel group">
                            <span>企业办事</span>
                        </div>
                    </a>
                    <a href="/smartTerminal/getSiteList">
                    <div class="todolist-panel partment">
                            <span>部门办事</span>
                        </div>
                    </a>
				</c:if>
                <c:if test="${type.equals('2') }">
					<a href="/smartTerminal/getoritems?type=2" class="active">
                        <div class="todolist-panel personal">
                            <span>个人办事</span>
                        </div>
                    </a>
                    <a href="/smartTerminal/getoritems?type=1">
                        <div class="todolist-panel group">
                            <span>企业办事</span>
                        </div>
                    </a>
                    <a href="/smartTerminal/getSiteList">
                    <div class="todolist-panel partment">
                            <span>部门办事</span>
                        </div>
                    </a>
				</c:if>
                </div>
                <div class="col-md-24 list-btn-groups">
                    <div class="row">
                    <c:forEach var="items" items="${oritems}">
                        <a class="col-md-3 cusp"  href="/smartTerminal/getitembytagid?type=${type }&tag_name=${items.getTAG_NAME()}&tag_id=${items.getTAG_ID()}&itemName=&currentpage=1&pagesize=3">
                            <div class="list-sel-btn">
                            	 <div class="image-wrapper">
	                            	<img src="http://218.87.176.156:8080/platform/xzspos/images/icons/${items.getIMG() }">
	                                <span>${items.getTAG_NAME()}</span>
                                </div>
                            </div>
                        </a>
                    </c:forEach>   
                        
                    </div>
                </div>
            </div>
        </div>
        <div class="row footer">
            <a class="btn btn-success btn-lg" href="loginOut" role="button"><i class="fa fa-reply"></i>返回首页</a>
            <a class="btn btn-primary btn-lg" href="javascript:history.go(-1)" role="button"><i class="fa fa-arrow-left"></i>上一步</a>
        </div>
    </div>
    <form id="loginOut" action="loginOut"></form>
</body>
<script src="static/js/common.js" type="text/javascript"></script>
<script>
var index = layer.load(3, {
    shade: [0.3,'#000'] //0.1透明度的白色背景  
});
setTimeout(function(){
    layer.close(index);
},1000);
var colorobj = {
        "0":"pink",
        "1":"blue",
        "2":"skin",
        "3":"green",
        "4":"purple",
        "5":"deep-green",
        "6":"pink",
        "7":"blue"
     }
$('.list-sel-btn').each(function(index, el) {
    var result = index%8;
    $(this).find('.image-wrapper').addClass(colorobj[result]);
});

$(window).datetime({
	userTime:119,
	countTime:30,
	loginType : false
});

</script>
</html>
